{# Sending the bot to a call, on the Meetings page and on Overseer's: posts to ``send_url``; a link it cannot join comes back as this form with the error (422), a sent bot opens its meeting. Where there is more than one agent (``agents``), which one it goes as; it joins as the agent's name unless given another. #} {% from "components/macros/form.html" import field, primary_button, select, text_input %}
{% call field("Meeting link", error) %}{{ text_input("url", url, placeholder="https://meet.google.com/abc-defg-hij", required=True) }}{% endcall %} {% if agents %}{% call field("Agent") %}{{ select("agent", agents, agent or agents[0].id, blank=None, block=True) }}{% endcall %}{% endif %} {% call field("Bot name") %}{{ text_input("bot_name", bot_name, placeholder="The agent's own") }}{% endcall %} {{ primary_button("Send", type="submit") }}